package com.alexrnl.BetaSeriesFileManager.API.entities.enums;


/**
 * Enumeration representing the genre of a show.
 * 
 * @author Alex
 */
public enum Genre {
	/**
	 * Action and adventure series.
	 */
	ACTION_AND_ADVENTURE("Action and Adventure"),

	/**
	 * Animated series.
	 */
	ANIMATION("Animation"),

	/**
	 * Comedies.
	 */
	COMEDY("Comedy"),

	/**
	 * Dramas.
	 */
	DRAMA("Drama"),

	/**
	 * Science fiction series.
	 */
	SCIENCE_FICTION("Science-Fiction"),

	/**
	 * Fantasy series.
	 */
	FANTASY("Fantasy"),

	/**
	 * 
	 */
	SPECIAL_INTEREST("Special Interest"),
	/**
	 * 
	 */
	SPORT("Sport");

	private String	name;

	/**
	 * Constructor.
	 * @param name
	 *            the name of the status for the show
	 */
	private Genre (final String name) {
		this.name = name;
	}

	/**
	 * @return the name of the genre.
	 */
	public String getName () {
		return name;
	}

	/**
	 * Retrieve a {@link Genre}.
	 * @param name
	 *            the name to look for.
	 * @return the matching enumeration, if it exist
	 */
	public static Genre fromName (final String name) {
		return Enum.valueOf(Genre.class, name);
	}
}
